dig (someone's) own grave

Translations
creuser sa propre tombe
Definitions
To engage in actions or behaviors that will lead to one's own downfall or misfortune.